import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    component: () => import("@/views/home/index.vue"),
    meta: {
      keepAlive: true,
    },
  },
  {
    path: "/list",
    component: () => import("@/views/list/index.vue"),
    meta: {
      keepAlive: true,
    },
  },
  {
    path: "/details",
    component: () => import("@/views/details/index.vue"),
    meta: {
      keepAlive: true,
    },
  },
];

export default new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});
